﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsOrderManagement
{
    internal class orderbinding
    {
            // 订单基本信息
            public string OrderId { get; set; }
            public DateTime OrderDate { get; set; }

            // 客户信息
            public string CustomerId { get; set; }
            public string CustomerName { get; set; }
            public string CustomerContact { get; set; }

            // 产品信息
            public string ProductId { get; set; }
            public string ProductName { get; set; }
            public decimal ProductPrice { get; set; }

            // 订单详情
            public int Quantity { get; set; }
            public decimal TotalPrice => ProductPrice * Quantity;

            // 计算属性示例
            public string OrderDateShort => OrderDate.ToString("yyyy-MM-dd");
        

    }
}
